// mobile bind
// ============

define(['zepto', 'utils'], function($, utils){
  return {
    init: function(data) {
      
      this.pdf = data.pdf;
      this.initPage();
    },

    initPage: function() {
      var that = this;
      $(document).ready(function() {
    	  if(that.pdf == "true") {
    		  $('.pdf-url').trigger("click");
    	  } else {
    		  var longUrl = $('.long-url').data("href");
    	      if(longUrl) {
    	        window.location.href = longUrl;
//    	    	  window.open(longUrl, "_blank");
    	      }
    	  }
          
      })
    }
    
  }

})